package com.leps.nq.tx.vo;

import com.leps.nq.tx.entity.PumpEffectivePoint;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel
public class PlcPumpPointVo {
    @ApiModelProperty("plc ID")
    private Integer plcId;

    @ApiModelProperty("plc名称")
    private String plcName;

    @ApiModelProperty("PLC大类别 (防腐 / 泡排)")
    private String plcType1;

    @ApiModelProperty("PLC小类别 (单泵 / 撬装 / 一泵多注 / 撬装一泵多注)")
    private String plcType2;

    @ApiModelProperty("PLC首地址")
    private Integer firstAddress;

    @ApiModelProperty("私有云服务器ID")
    private Integer pcsId;

    @ApiModelProperty("私有云服务器ip地址")
    private String ip;

    @ApiModelProperty("私有云服务器端口")
    private Integer pcsPort;

    @ApiModelProperty("私有云服务器密码")
    private String pcsPwd;

    @ApiModelProperty("下属泵列表")
    private List<Pump> pumps;

    @Data
    @ApiModel
    public static class Pump {
        @ApiModelProperty("泵ID")
        private Integer pumpId;

        @ApiModelProperty("泵设备名称")
        private String pumpName;

        @ApiModelProperty("泵设备编号")
        private String pumpNumber;

        @ApiModelProperty("泵设备类型 (电动注塞泵 / 气动泵)")
        private String pumpType;

        private List<PumpEffectivePoint> effectivePoints;
    }
}
